home *** CD-ROM | disk | FTP | other *** search
/ TPUG - Toronto PET Users Group / TPUG Users Group CD / TPUG Users Group CD.iso / C64 / I-Info Magazine / (c)i17.d64 / basic 4.0 doc < prev    next >
Text File  |  2007-02-04  |  3KB  |  66 lines

  1. ║CM:┬ASIC 4.0 DOC
  2. ║LM1:RM80
  3. ║PP66:PG64
  4. ║VP2
  5. ║CN1
  6. *************************
  7. *                       *
  8. *┬┴╙╔├ 4.0 ─╔╙╦ ├╧══┴╬─╙*
  9. *                       *
  10. *************************
  11. ║CN0
  12.  
  13. ╞╒╬├╘╔╧╬     ┼╪┴═╨╠┼                        ╨╒╥╨╧╙┼
  14. ------------------------------------------------------------------------------
  15. ┴╨╨┼╬─     10 ┴╨╨┼╬─#D,"╬┴═┼"             ╧PEN FILE '╬┴═┼' ON DEVICE 'D' FOR
  16.                                           APPENDING. ╬EW DATA IS ADDED TO 
  17.                                           END OF EXISTING DATA.
  18.  
  19. ┬┴├╦╒╨     ┬┴├╦╒╨ ─0 ╘╧ ─1                ─UPLICATE DISK IN DRIVE 0 ONTO
  20.                                           DISK IN DRIVE 1.
  21.  
  22. ├┴╘┴╠╧╟    ├┴╘┴╠╧╟ ─0                     ─ISPLAYS LIST OF FILENAMES IN SPEC-
  23.                                           IFIED DRIVE.
  24.  
  25. ├╧╠╠┼├╘    ├╧╠╠┼├╘ ─1                     ╨URGES DISK IN SPECIFIED DRIVE OF
  26.                                           ANY IMPROPERLY CLOSED FILES 
  27.                                           (INDICATED BY * BESIDE FILE TYPE).
  28.  
  29. ├╧╬├┴╘     ├╧╬├┴╘ "╬┴═┼1" ╘╧ "╬┴═┼2",─1   ├ONCATENATES FILE "╬┴═┼1" TO FILE
  30.                                           "╬┴═┼2", IE. ╬┴═┼2=╬┴═┼2+╬┴═┼1
  31.  
  32. ├╧╨┘       ├╧╨┘ "╬┴═┼",─0 ╘╧ "╬┴═┼",─1    ├OPIES FILE "╬┴═┼" FROM DRIVE 0 TO
  33.                                           DRIVE1.
  34.            ├╧╨┘ "╬┴═┼",─0 ╘╧ "─╒╨",─0     ═AKES DUPLICATION OF FILE "╬┴═┼".
  35.            ├╧╨┘ ─0 ╘╧ ─1                  ├OPIES ENTIRE CONTENTS FROM ─0 TO ─1.
  36.  
  37. ─├╠╧╙┼     ─├╠╧╙┼ #N                      ├LOSES DISK LOGICAL FILE 'N'.
  38.  
  39. ─╔╥┼├╘╧╥┘  ─╔╥┼├╘╧╥┘ ─0                   ┼XACT SAME AS ├ATALOG. ╒SE PREFERENCE
  40.  
  41. ─╠╧┴─      ─╠╧┴─ "╬┴═┼",─D,╒U             ╠OADS PROGRAM "╬┴═┼" FROM DRIVE 'D'
  42.                                           ON UNIT 'U'.
  43.  
  44. ─╧╨┼╬      ─╧╨┼╬#N,"╬┴═┼",─D,╒U           ╧PENS FILE "╬┴═┼" FOR READING FROM
  45.                                           DRIVE 'D', UNIT 'U'. ─EFAULT VALUES:
  46.                                           D=0, U=8. ─ATA IS RETRIEVED THROUGH
  47.                                           FILE NUMBER 'N'.
  48.            ─╧╨┼╬#N,"╬┴═┼",─D,╒U,╫         ╧PENS FILE "╬┴═┼" FOR WRITING TO
  49.                                           DRIVE 'D', UNIT 'U'. ╬OT NECESSARY
  50.                                           FOR ╥┼╠ATIVE FILES.
  51.  
  52. ─╙┴╓┼      ─╙┴╓┼ "╬┴═┼",─D,╒U             ╙AVES CURRENT PROGRAM TO DRIVE 'D'
  53.                                           ON UNIT 'U' AS FILE "╬┴═┼".
  54.  
  55. ╚┼┴─┼╥     ╚┼┴─┼╥"─╔╙╦╬┴═┼",─D,╔ID,╒U     ╞ORMATS DISK IN DRIVE 'D' UNIT 'U'
  56.                                           ASSIGNING IT A "─╔╙╦╬┴═┼" AND 'ID'.
  57.  
  58. ╥┼├╧╥─     10 ╥┼├╧╥─#N,A                  ╨OSITIONS RELATIVE FILE OPEN ON 
  59.                                           LOGICAL FILE NUMBER 'N' TO RECORD
  60.                                           NUMBER 'A'. 'A' MAY BE DYNAMIC BUT
  61.                                           MUST BE ENCLOSED IN BRACKETS.
  62.  
  63. ╥┼╬┴═┼     ╥┼╬┴═┼ "╬┴═┼" ╘╧ "╬┼╫╬┴═┼",─0  ├HANGES A FILENAME.
  64.  
  65. ╙├╥┴╘├╚    ╙├╥┴╘├╚ "╬┴═┼",─1              ┼LIMINATES FILE "╬┴═┼" FROM DISK.
  66.